package ${%^mapperPath^%};

import ${%^modelPath^%}.${%^type^%};
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

${%^imports^%}

@Mapper
public interface ${%^type^%}Mapper {
    List<${%^type^%}> list(@Param("map") Map<String, Object> map);
    Long count(@Param("map") Map<String, Object> map);
    Integer deletes(@Param("list") List<${%^tablePrimaryKeyType^%}> list);
    Integer insert(@Param("list") List<${%^type^%}> list);
    Integer update(@Param("data") ${%^type^%} data);
    List<${%^type^%}> query(@Param("data") ${%^type^%} data);
}